<?php
//define('EASYSWOOLE_ROOT', dirname(__FILE__));
define('DEBUG_MODEL_FLAG', dirname(__FILE__));
define('EASYSWOOLE_ROOT', 'H://WORK/wampserver/www/NewListProject/QP-Cards/G_Server');
header("Content-type:text/html;charset=UTF-8");

// 引入文件
$loadFields = getFileLoad();
if (! empty($loadFields)) {
    foreach ($loadFields as $on => $oneFile) {
        require_once EASYSWOOLE_ROOT."/{$oneFile}";
    }
}
// 引入文件
function getFileLoad() {
    $baseFiles = [
        'vendor/easyswoole/component/src/Singleton.php',
        'vendor/easyswoole/easyswoole/src/SysConst.php',
        'vendor/easyswoole/spl/src/SplArray.php',
        'vendor/easyswoole/spl/src/SplBean.php',
        //'vendor/easyswoole/component/src/Di.php',
        'vendor/easyswoole/component/src/Pool/TraitInvoker.php',
        'vendor/easyswoole/component/src/Pool/AbstractPool.php',
        'vendor/easyswoole/component/src/Pool/PoolConf.php',
        'vendor/easyswoole/component/src/Pool/PoolObjectInterface.php',
        'vendor/easyswoole/component/src/Pool/PoolManager.php',
        
        'vendor/easyswoole/swoole-ide-helper/output/constants.php',
        'vendor/easyswoole/swoole-ide-helper/output/namespace/Coroutine/Redis.php',
        'vendor/easyswoole/swoole-ide-helper/output/namespace/Coroutine/Channel.php',
        'vendor/easyswoole/swoole-ide-helper/output/namespace/Coroutine/MySQL.php',
        'vendor/easyswoole/swoole-ide-helper/output/namespace/Timer.php',   
        'vendor/easyswoole/swoole-ide-helper/output/namespace/Table.php',
        'vendor/easyswoole/config/src/AbstractConfig.php',
        'vendor/easyswoole/config/src/TableConfig.php',
        'vendor/easyswoole/easyswoole/src/Config.php',
        'vendor/easyswoole/log/src/LoggerInterface.php',
        'vendor/easyswoole/log/src/Logger.php',
        'vendor/easyswoole/easyswoole/src/ServerManager.php',
        'vendor/joshcam/mysqli-database-class/MysqliDb.php',
        'vendor/easyswoole/mysqli/src/Mysqli.php',
        'vendor/easyswoole/mysqli/src/Config.php',
        'vendor/easyswoole/mysqli/src/Exceptions/Exception.php',
        'vendor/easyswoole/mysqli/src/Exceptions/ConnectFail.php',
        'App/Utility/RedisTools.php',
        'App/Utility/Pool/MySQLObject.php',
        'App/Utility/Pool/MySQLPool.php',
        'App/Utility/Pool/RedisObject.php',
        'App/Utility/Pool/RedisPool.php',
        'App/HttpController/TestDebug.php',
        'App/Utility/BaseEnum.php',
        'App/Model/BaseModel.php',
        'App/Enum/CardEnum.php',
        'App/Enum/MahjEnum.php',
        'App/Enum/PorkerEnum.php',
        'App/GameService/games/BasePlay.php',
        'App/GameService/games/PlayHelp.php',
        'App/GameService/games/PlayTwoEight.php',
        'App/GameService/games/PlayGrabNine.php',
        'App/GameService/games/PlayDZPoker.php',
        //'App/Enum/CREnum.php',
        //'App/Utility/BaseDB.php',
        'App/Common/BaseComm.php',
        'App/Common/AuthCommon.php',
        'App/Common/GameCommon.php',
        'App/Common/PlayCommon.php',
        'App/Model/GameType.php',
        'App/Model/User.php',
        'App/Model/GameOrder.php'
    ];
    return $baseFiles;
}

// 解析PHP文件内容；
$getTwo = isset($_REQUEST['m']) ? intval($_REQUEST['m']) : 0; // 取数据内容 ；
                                                              // 写操作内容；
if (isset($getTwo)) {
    $newObj = new App\HttpController\TestDebug();
    $newObj->debug($getTwo);
}

?>